﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Students/Students.Master"
    Inherits="System.Web.Mvc.ViewPage<CollaborationRoom>" %>
<%@ Import Namespace="ViewRes" %>

<asp:Content ID="ScriptsContent" ContentPlaceHolderID="ScriptsContent" runat="server">
    <script src="<%:Url.Content("~/Scripts/Diploma.js")%>" type="text/javascript"> </script>
    <script type="text/javascript">
        $(function () {
            loadPlaningsControl();
            loadNormControls();
        });

        function loadNormControls() {
            $("#normControlDocs").load('<%:Url.RouteUrl("Default",new{controller = "NormControlDocs", action = "LoadPlaningsControl", roomId = Model.CollaborationRoomId})%>');
        }

        function loadPlaningsControl() {
            var path = '<%:Url.RouteUrl("Default",new{controller = "TimeLine",action = "LoadPlaningsControl", roomId = Model.CollaborationRoomId})%>';

            $("#planings").load(path, function() {

            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:SharedStrings.CollaborationRoom%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%
        Html.RenderPartial("~/Views/CollaborationRooms/CollaborationRoomHeader.ascx", Model);%>
    <br />
    <div>
        <div></div>
        <div class="smalltitle">Работа с сообщениями </div>
        <img class="sticker" src="<%:Url.Content("~/Content/Icons/creattica-icon.png")%>" />
        <div id="left">
            <%
        Html.RenderPartial("~/Views/Messages/ChatControl.ascx", Model, ViewData);%>
        </div>
    </div>
    <hr />
    <div>
        <div class="smalltitle">Работа с контрольными точками </div>
        <img class="sticker" src="<%:Url.Content("~/Content/Icons/rockable-press-icon.png")%>" />
        <div id="planings">
        </div>

    </div>
    <hr />
    <div>
        <div class="smalltitle">Работа с файлами</div>
        <img class="sticker" src="<%:Url.Content("~/Content/Icons/envato-icon.png")%>" />
        <div align="center">
            <iframe src="<%:Url.RouteUrl("FileManager",
                                           new
                                               {
                                                   roomId = Model.CollaborationRoomId,
                                                   userId = ((User) ViewData["LoggedUser"]).UserId
                                               })%>"
                id="FileManager"></iframe>
        </div>
    </div>
    <div>
        <div class="smalltitle">Секретарь ГЭК</div>
        <img class="sticker" src="<%:Url.Content("~/Content/Icons/rockable-press-icon.png")%>" />
        <div align="center">
            <% Html.RenderAction("StudentProperties", "Students", new { studentId = Model.Student.UserId }); %>
        </div>
    </div>
</asp:Content>
